package com.maigao.persistent;

import com.maigao.entity.jpa.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    User findByMobile(String mobile);

    User findByWxOpenIdAndUserStatus(String wxOpenId, Integer userStatus);

    User findById(int id);

    User findByUid(String uid);

    User findByMobileAndRegistrationCode(String mobile, String registrationCode);
}
